package cn.iocoder.yudao.im.domain;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Getter;
import lombok.Setter;
import lombok.experimental.Accessors;

import java.io.Serializable;
import java.time.LocalDateTime;

/**
 * <p>
 * 群
 * </p>
 *
 * @author ZCC
 * @since 2024-07-02
 */
@Getter
@Setter
@Accessors(chain = true)
@TableName("system_notice_im_group")
public class NoticeImGroup implements Serializable {

    private static final long serialVersionUID = 1L;

    /**
     * id
     */
    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    /**
     * 群名字
     */
    @TableField("name")
    private String name;

    /**
     * 群主id
     */
    @TableField("owner_id")
    private Long ownerId;

    /**
     * 群头像
     */
    @TableField("head_image")
    private String headImage;

    /**
     * 群头像缩略图
     */
    @TableField("head_image_thumb")
    private String headImageThumb;

    /**
     * 群公告
     */
    @TableField("notice")
    private String notice;

    /**
     * 群备注
     */
    @TableField("remark")
    private String remark;

    /**
     * 是否已删除
     */
    @TableField("deleted")
    private Boolean deleted;

    /**
     * 创建时间
     */
    @TableField("created_time")
    private LocalDateTime createdTime;


    /**
     * 用户在群显示昵称
     */
    @TableField(exist = false)
    private String aliasName;

    /**
     * 是否已退出
     */
    @TableField(exist = false)
    private Boolean quit;

    /**
     * 群成员数
     */
    @TableField(exist = false)
    private Long memberCount;


}
